home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_PICT / Testing / hex_tests / pat=set1=rgb.hex < prev    next >
Text File  |  1995-06-12  |  3KB  |  68 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 0011 02FF                        % verson
  6. 0001 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 0030 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that the primary object
  12. %    manipulations (filling, painting, erasing, framing) work as
  13. %    they should with patterns.  It doesn't test all opcodes.  Merely
  14. %    a representative subset.
  15. %    This test confirms that it works properly with rgb (type 2) pnpxpatterns
  16. %
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18.  
  19. % PnPix Background pattern
  20. 0012
  21. 0002                % Type
  22. 0102 0408 1020 4080    % pattern
  23. F0F0 0000 0000        % slightly off red
  24.  
  25. % PnPix Pen pattern
  26. 0013
  27. 0002                % Type
  28. 0102 0408 1020 4080    % pattern
  29. 0000 8080 0000        % half green
  30.  
  31. % PnPix Fill pattern
  32. 0014
  33. 0002                % Type
  34. 0102 0408 1020 4080    % pattern
  35. FFFF 0000 8888        % Red with a middling of blue (purpleish?)
  36.     
  37.  
  38. 000B 0010 0010    % roundrect oval size
  39.  
  40. % draw lines along its four sides
  41. 0020 0010 0000 0010 00FF
  42. 0020 0000 0010 00FF 0010
  43. 0020 0050 0000 0050 00FF
  44. 0020 0000 0050 00FF 0050
  45.  
  46. 0020 0000 0080 00FF 0080
  47. 0020 0000 00C0 00FF 00C0
  48.  
  49. 0020 0080 0000 0080 00FF
  50. 0020 00C0 0000 00C0 00FF
  51.  
  52. % Frame a rectangle
  53. 0030 0010 0010 0050 0050
  54.  
  55. % paint an adjacent roundrect
  56. 0041 0010 0080 0050 00C0
  57.  
  58. % try to invert part of the  last rectangle with an arc
  59. 0063 0010 0080 0050 00C0  0010 00A0
  60.  
  61. % fill an oval below that one
  62. 0054 0080 0080 00C0 00C0
  63.  
  64. % erase an arc 
  65. 0062 0080 0010 00C0 0050 0010 00A0
  66.  
  67. 00FF    % end
  68.